import {StorageHelpers} from "./helpers.ts";

export function useStorage(keyPrefix: string, local: boolean = true): StorageHelpers {
    const storage = local ? window.localStorage : window.sessionStorage;
    return new StorageHelpers(keyPrefix, storage);
}
